Moving gif generation to a worker