add compatibility for handling absolute and uri image targets