added photo uploading functions