simple helper that checks the type of file 

displays and image if the file url contains png/jpeg/jpg/gif/bmp