code: function isImage(headers){
      var regexImage = /image\//i;
      var contentType = headers ?  headers['content-type'] : '';
      return regexImage.test(contentType);
  }
docs: Check if the content of the HTTP body is an image
  
  @param {Object} headers -
  @return {Boolean}
  @api private