added photo uploading