Fix imageCount()/loopCount() for single images.