Abstracted framebuffer functions to base class