added callback to save_image()