Resize big images.
Added modal dialogs.