image COPY: also copy history stack and take care of duplicate handling