initial implementation for upload photo