Adding logging to photo uploading.