upload photo as open data in swift for iPhone