recreating PNG output