High speed image acquisition for science and biology with on the fly image analysis