Support quartile scheme for any imagery source (fixes #2112)