Get some rudimentary error handling setup in the gallery
This is mostly just Mayhem's ImageExpand error code, refactored
for the context of the gallery.
Separate Gallery and Image Expansion fit width / height
Sometimes, I'm dumb