added callbacks for image transition and image cycle