Try the tutorial for printing bitmaps stored on an SD Card on a thermal printer available at http://lucidtronix.com/tutorials/28. Their library automatically thresholds the image if it is in color and has a print scanline function that prints the image row by row.