Changed pdf output to png