The width of the image is set in the imageviewer immediately.