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

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

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