Added support for specifying the output frame buffer