Implemented photo uploading