Image Viewer: making the initial resize happen before loading the image