Added preliminary support for a stored image URL
Tidied up upload_data for consistency with rest of API