cleanup and convert classify to use arrays for fit images
remove z-dimension from single-band images
fixes and optimizations in classification