fixes #17
check if image and link url is on same domain. if not raise error