function imageTypeToExtension(value) {
  var extension = isImageType(value) ? value.substr(6) : '';
  if (extension === 'jpeg') {
    extension = 'jpg';
  }
  return ".".concat(extension);
}
Convert image type to extension.
@param {string} value - The image type to convert.
@returns {boolean} Returns the image extension.