Fixup some C string stuff for images.