BUGFIX on image copy