Simplify & cleanup the framebuffer sizing code