rewrote image addresses