add support for samplesPerPixel field