(re)fixed addFile/editGallery for thumb-less images