Fix dumb js bug

Bah. Sorry about this one. It prevents some subpage images from being sized correctly. I wish I had done this without JS, but it was equally hacky.