Snell's law: the bane of computer microscopists