Extract pixel blending into separate class