Created and used Framebuffer object class