framebuffer class