Fix to output the bitmap image