Wrapped FrameBuffer to a class