uploading image improved
temp files are deleted after being saved to cloud