Thanks so much to both of you for having a look!
It appears this bug crops up the first time the game is run, before an image has been cached, which is why I was having so much trouble recreating it.
Hope I can fix it quickly.