private function createGifStream() { $encoder = new GifEncoder(); $gif = new GifStream($encoder); return $gif; }