MDL-44000 Atto: Add option to constrain image size

(Keep aspect ratio)

Also some small improvements to the edit image dialogue.