It's safer to scope this selector to the proper `self.imageGalleryModal`. It's important to consider cases when there are multiples editors in the same page, or even when the application has its own `ul.thumbnails` elements.