Optimizing image uploading.