changed to png from pdf for fig output