dumpVar: only available in dev mode
In addition to the actual image file, also write a `.texture` engine file.