small fix on upload of images