Another attempt to sizing framebuffer based on fmt