write output directly to bitmap memory