imageComment = async options => {
  let { post_id, dispatch, when, user, file: commentFile, done } = options,
    form = new FormData(),
    file = await imageCompressor(commentFile),
    o = new d('.overlay-2')

  o.show()
  wait()

  form.append('commentImage', file)
  form.append('post', post_id)

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

  if (success) {
    await commentDispatchHelper({
      user,
      post_id,
      comment_id,
      when,
      dispatch,
      commentExtraDetails: {
        type: 'image',
        commentSrc: filename,
        text: '',
      },
    })

    done()
  }

  o.hide()
  Notify({ value: mssg })
}
Image comment
@param {Object} options
@param {Number} options.post_id
@param {Function} options.dispatch
@param {String} options.when
@param {Number} options.user
@param {File} options.file
@param {Function} options.done