I'd like to make a static HTML page with a gallery of pixel art images that can be viewed in a javascript-powered "lightbox". Tons of existing libraries for that, but none of them seem to have a couple niche features I need: aspect correction from non-square (4:2.5) pixel source resolution, nearest-neighbor upscaling small (320x200) images to fill screen / a larger area. Am I in "code your own custom lightbox" territory here, or is there a smarter path?