1. A photomask, comprising: a substrate; and a patterned layer formed on at least a portion of the substrate, the patterned layer formed using a mask pattern file created by: comparing a feature dimension in a mask layout file with a design rule in a technology file; identifying a design rule violation in the mask layout file if the feature dimension is less than the design rule; and automatically correcting the design rule violation in the mask layout file.