Allow arbitrary depth images for grayscale conversion