You provided very short code samples. However, I assume that you need to preview some images and then print them. See this one, there are a lot of convinient image processing commands including preview, print image, print batch and so on:
http://www.artuxsoft.com/.