Fixed minor issues with color copy function, still a few remaining.