Rewrites also images