Re-write pixel copy loop for efficiency