made a script to transform images