Defender uploading photo (Refactored)