Provide more accurate coordinates for scaled images and show/hide scale sticker the right way.

This fixes issue #6014 and #5990.