add code to generate png with transparent background