imageMessage = async options => {
  let { file: messageFile, con_id, con_with, dispatch } = options,
    form = new FormData(),
    file = await imageCompressor(messageFile),
    o = new d('.overlay-2')

  o.show()
  wait()

  form.append('messageFile', file)
  form.append('con_id', con_id)
  form.append('con_with', con_with)

  let {
    data: { success, mssg, message_id, filename },
  } = await post('/api/image-message', form)

  if (success) {
    messageDispatchHelper({
      con_id,
      con_with,
      message_id,
      message: filename,
      messageType: 'image',
      dispatch,
    })
  }

  messageScroll()
  o.hide()
  Notify({ value: mssg })
}
Image message
@param {Object} options
@param {File} options.file
@param {Number} options.con_id
@param {Number} options.con_with
@param {Function} options.dispatch