Image folder path rewrite