direct png output using gv lua library, also some other functionality