Use of directive where it will get the corrected URL and check the status of the image. If image exist it will push into DOM the new image while hiding out the placeholder image
It will also check if the att string is an image or video, if its a video it will load the HTML5 video content with a custom controller, replacing the poster for the video