change dev.copy() to png()