changed the way of fetching images. Added interface and an implementation.