1. A method of correcting alignment of an image, the method comprising: identifying an image of a document; detecting a plurality of lines that appear within the image; classifying at least a subset of the plurality of lines as horizontal lines or vertical lines; determining that a variance exists within the subset of the plurality of lines, wherein the variance that exists within the subset of the plurality of the lines is between at least one horizontal line and at least one vertical line, and the variance comprises the intersection of the lines being at an angle other than perpendicular to each other; and applying a corrective transformation to adjust the image, wherein the variance within the subset of the plurality of lines is at least partially reduced as compared to the variance prior to the application of the corrective transformation.