Fixed buffer overflow in KakaduImage.cc (found by michalbecak)