add image calculation to the script.