FEATURE: location for image and output files now may be user-defined