Save the updated package.json
Create the swapImgWithGif function and seperate out the functionality into modules