wrote copy, stored reference images