Editor: Visualise if images are used by layers

If images aren't used but loaded in the editor (external or embedded) the button will be drawn a bit darker than usual.

(Originally by deen, I have his permission to open this pull request (: )
This code duplication is unfortunate, but I guess there's little one can do about it.