added animation for image changing