add animation for images