Thanks guys, I'll have to find another way to do it I guess.

Unfortunately I currently have 8,045 images to deal with.