Update calcul of the pixel and add comment