function getFilterType(type, { useAlpha = true, mode } = {}) {
  const { VINTAGE, REMOVE_COLOR, BLEND_COLOR, SEPIA2, COLOR_FILTER, REMOVE_WHITE, BLEND } =
    filterType;

  let filterName;

  switch (type) {
    case VINTAGE:
      filterName = SEPIA2;
      break;
    case REMOVE_COLOR:
      filterName = useAlpha ? COLOR_FILTER : REMOVE_WHITE;
      break;
    case BLEND_COLOR:
      filterName = mode === 'add' ? BLEND : mode;
      break;
    default:
      filterName = type;
  }

  return toStartOfCapital(filterName);
}
Get filter type
@param {string} type - fabric filter type
@param {object} [options] - filter type options
  @param {boolean} [options.useAlpha=true] - usage of alpha(true is 'color filter', false is 'remove white')
  @param {string} [options.mode] - mode of blendColor
@returns {string} type of filter (ex: sepia, blur, ...)