Optical image taken in dark field of cracked photoresist of variable thickness