Move pixel blending to its own method for ease of extending