1. A method for adjusting corners of a pattern to be written into a sensitive recording surface, comprising: generating a grayscale pixel map by rasterizing a data file for an image of the pattern, the pixel map comprising an array of pixels having corresponding grayscale values between 0 and an integer N; generating a Boolean pixel map comprising an array of pixels having Boolean values of zero or one, depending on the grayscale values of corresponding pixels in the gray-scale pixel map; detecting corner pixels in the grayscale pixel map by comparing arrays of pixels in the Boolean pixel map including pixels corresponding to the corner pixels and surrounding pixels to templates of pixels corresponding to corners; and adjusting grayscale values of at least one of corner pixels and pixels neighboring corner pixels.