grabbed and validated the image from xml api