Optical mapping of contracting hearts