function error(fn, message, img){
  return function(e){
    e = e || window.event;
    var err = new Error(message);
    err.event = e;
    err.source = img;
    fn(err);
  };
}
TODO: Document me

@api private
@param {Function} fn
@param {string} message
@param {Element} img
@return {Function}