added some optional mods to sim_image.py