added pngdefry helper method