fix malfunctioning cancellation of image editing; make dialog call post-close handler in usual way and get rid of dirty fix for ESC handling