title: PHP scrape remote images that do not have extensions
body: <p>I've developed an image scraper that will scrape specific images from remote sites and display them upon pasting into a text field. The logic includes finding images that end in .jpg .jpeg . png  etc.</p>
  
  <p>I'm running into an issue where alot of sites will generate images via javascript and or not have the image extension as part of the displayed image. Example sites like </p>
  
  <p>www.express.com and www.underarmour.com have this issue and many more.</p>
  
  <p>What function could I use to find images from a set URL and then display them accordingly that do not have a file extension?</p>
  
  <p>Thanks again.</p>