Decreasing image sizes and making them local