Changed dev.copy to png()