opt: support relative image path; add webroot in opt to support absolute webroot path