Created a photo upload method