found dev.copy() not as reliable as png() function, so changed saving method