added regex to parse image source