changed imgpath to unixpath.