Added two method for gif animation

Added two method for gif animation