memory + png issue fix