This script works fine, but there is a problem.
How to add an image that appears with an element inside (\'var pastactions\') of images inside (\'var images\').