implement some framebuffer methods