Fixed bug in ImageUploader