Add pack pass, pixel counter, and many bug fixes