Minor error fixes in image_preprocessor and step to call it