A Variable Frequency Drive supplies power to rotate a motor, controlling both the speed and direction. For example, some embodiments of the present invention provide variable gain control circuits. The color information can then be restored utilizing a template to measure the displacements of the halftone dots and hence the color information.