render based on camera rather than player, and fix minor bugs in
pixel-block conversion functions