added image upload (error on server)