add image transition api.