Little changes in calculation of pixel loss (multiplication changed to division).