Add function to get the dimensions of the framebuffer