Fix first issues related to image size
This adds a read limit to the streams we use to find out the dimensions of image attachments to prevent them from getting loaded into memory.
Scale down large images in full screen view to prevent too large textures.
This MR also increases the zoom levels of PhotoView a bit.
First part of #1468 (closed)