Create single getGif function, Add console.time/timeEnd