Rewrite url's to image assets.