This removes the display name of the image from the title area...and replaces it with the memory being consumed by the document. This is more helpful when there are multiple documents open.
I also replaced the "*" with the word modified. That is a bit more clear than a symbol. We did something similar not too long ago with the brush editor.
reference task: https://phabricator.kde.org/T7224