Added the transparent background option to dev.copy()
set the working directory to the correct value