Fix enlarging in ImageViewer