Retrieving an image from an image library in SharePoint 2013 is easily done with a server-side control. But what if you are in the scenario of a public facing website? Another way of achieving this goal is to use the SharePoint 2013 Search REST API.
SharePoint Search by default crawls the contents of all site columns so that they are available for search queries. While most would consider that to be a good attribute there are times when it can be a hindrance, especially when content is shown on public facing websites which is not relevant to the content on the page or the metadata about the page.