       unless type
         err = new Error 'Unsupported MIME type'
         err.payload = payload
-        outPorts.error.send err
-        do callback
+        callback err
         return
       if type.ext is 'gif'
         tmpFile = tmp.fileSync()

  noflo.helpers.WirePattern c,
    in: 'in'
    params: 'frame'
    out: ['out', 'error']
    forwardGroups: true
    async: true
  , (payload, groups, outPorts, callback) ->
    chunk = readChunk payload, 0, 262
    frame = if c.params.frame then c.params.frame else 0
    chunk.then (buffer) ->

          if err
            tmpFile.removeCallback()
            err.payload = payload
            callback err
            return
          out.send tmpFile.name
          do callback
          return
      else
        # Not a GIF, just send the tempfile path along
        out.send payload
        do callback
        return
    return
