Simplified with a pixel class