move gif convertion to renderer.js