generate gif frames