I had a similar problem a while ago. My solution was to make sure that none of your image names have any spaces in them.
More