fixing problems with scaled image sizes
rescaling images to be at least 300 pixels in smaller size