Break foreach if Jpeg original url is obtained