A software platform for modeling imaging systems