Fix future division, debug image output