Make NImage::IsValid check for a non-empty size.
Removed UInt32 usage