Publish and rewrite image paths