Added more flexibility on image format in ImageUploader plugin