help with spawning images so you can manipulate individually?

I am creating a game where multiple of the same image is spawned every say 500 mili seconds and I created a touch function to remove the image when I touch the image but it removes the last spawned image instead of the one I touched. I need to be able to remove the image I click.

never mind found some other stuff out.

never mind found some other stuff out.