add transition for image