fixed delay value issue of cmd
now gif createGif works fine
but it opens up a command prompt