set resolution for images to 512x512