Fixed some details in image extraction from referrer string, and unit tests.