Use malloc for the temporary framebuffer