MDL-44487 Atto: Restrict size of image preview in popup.

Instead of only restricting the width, we set a max-width and max-height in css.
We also make the dialog a bit wider so it looks better in clean.