add function to imagesViewController resize of image