hotfix: do not redirect if the path is an image style.