Copy input stream and adding gifdecoder