Add gif file name entry point and fixed memory leak.