bug fix in image upload for Tinymce editor