The invention provides a system and method for automatic real-time monitoring for the presence of a pathogen in water using coherent anti-stokes Raman scattering microscopy. A virtual printer driver, executing on a server, is used to generate and manage generate virtual printer queues associated with remote printers connected to the client machine. The method includes choosing a candidate start region in the image, and then determining whether the candidate start region includes at least a portion of a candidate oriented encoded signal.