added flip animation for images