Flickr error handling. Also added media error message function