Percival: A soft x-ray imager for synchrotron rings and free electron lasers