this sounds like a problem with your script and not with this tool - check the image statement before this code and make sure it's correct.