Adds checking if the path is local or remote. If is a local file,
prepend the public folder to its path so we have more controll over
the urls/path passed to generate images from the http://app.dev/thumbnails/thumb