Feature 2: deal with relative path to render image.