Added resizing of images