code: function offsets (imageData) {
        if (align === 'top') {
          rowOffset = 0;
          columnOffset = 0;
        } else {
          rowOffset = Math.floor((height - imageData.height) / 2);
          columnOffset = Math.floor((width - imageData.width) / 2);
        }
      }
docs: Helpers