* Retrieve and validate the extension from the response of the url of the image.
*
* @param ResponseInterface $res Http Response
* Retrieve and validate the extension from the response of the url of the image.
*
* @param ResponseInterface $res Http Response