convert image to grayscale
add resources
get the gray color value
implement controling the serial device
implement printing
实现图片按序打印，但是点的行距太大。