introduced Pixel class for generic oversampling