make resoures links relative
allow setting image url as data attribute