Verify that main picture active area is valid (even, and not too big) (#2392).