Change name of tile layer to name of image if it's currently the default "Tiles" or equal to the name of the previous image. The latter does not work for images with a path longer than the supported tile layer name length.
Extract some common expressions into variables.
Move the remaining popup callbacks PopupImage and PopupMenuFile from menus to popups.
f7c24bb move popup callbacks from editor to popups - Robyt3
dcbeb38 change name of tile layer to image name on chan... - Robyt3
c1c3e5a Merge pull request #2456 from Robyt3/issue1202 - oy