Or, reserve gesture detector for use in the single image mode and edit mode, and keep loading it dynamically like we do now.  Then for thumbnails, you should be able to continue to use the click event without needing the shim.