added option to process jpg and other image files (in a single band for now)