Added resizing of images

Added resizing of images