Changed copyfile to copy

Changed copyfile to copy because copyfile was copying the empty image
files.