Image upload bugfix