restore fleximage, fix local path