[ref #112] The macro "ENABLE_DEBUG_IMAGE" is now set depending on the cmake configuration

That means that it is defined in debug builds and not in release builds.