Make generating mips optional for loaded-from-memory PNGs.