added plane PNG output function (mainly for internal use)