Implemented fade in/out for gif animation