Updated success callbacks for gallery.panel.js and gallery.dialog.js

No longer need to save xhr ahead of success.

Tested and seems to work well, even with watermarks on Chrome (previously an issue).