Fixed random-img component so that it would work with relative urls instead of absolute ones