Rewriting image sources too