broke sendGif logic into its own function