A rough image upload function