replaced pdf device with png device