adjusts the image sizes