add gif animation support