added framebuffer code to source