Сorrection of errors in the layout + perfect pixel