Add function to enable gif animation