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

1. add support for relative image path
2. add webroot in opt to support absolute webroot path