An all-optical Compton source for single-exposure x-ray imaging