code: function (point, size, isRelative) {
        return {left: Math.ceil(point.x), top: Math.ceil(point.y), width: Math.ceil(size.width),
              height: Math.ceil(size.height), relative: isRelative};
      }
docs: A helper function for creating region objects to be used in checkWindow
  @param {Object} point A point which represents the location of the region (x,y).
  @param {Object} size The size of the region (width, height).
  @param {boolean} isRelative Whether or not the region coordinates are relative to the image coordinates.
  @return {Object} A region object.