Image resizing code finished. That install was... fun, I guess.
I put a band-aid on resizing inside spoiler tags, so that instead of images resizing if they're larger than 100% of the post width, they're resizing if they're wider than a fixed value. I'm counting on the majority of resolutions being 1920x1080. This fix obviously won't work on smartphones or smaller resolutions. I'd prefer using percentages as before, but since the spoiler code block doesn't have an assigned width (it inherits it from the post), the image basically doesn't have any width constraints and it isn't resized. It seems like an issue with the spoiler code, so I'll see what I can do about that.