Debug image to number conversions