Moved all image processing into its own class with optional threading. Having some issue with green vs. black.