Fix image thing again

While my previous patch to make sure images were existent before trying to form an imageUrl worked if there was no image set at all, in the real world an image is *always* set, only sometimes it might be set to a zero-length buffer. This takes that into account.