Optimizing for best photomaster quality