Port some Debug::log to qCDebug.
Use Qt logging and assertions in Image class.