Finally y managed to grab the image.
The image src was inside a div under the attribute data-src like this
(<)div class="image" data-src="image.jpg><\div>
So I had to call the class of the div to then call its attribute data-src. problem was that I didn't notice there wasn't a (<)img> tag which I was calling. So the final code was
Elements img document.select("div.image");
String imgSrc = img.attr("data-src");
Cheers everyone.