adding scripts to edit the image