replaced screen device with png()