An image coding method for a domain corresponding to at least one portion of an image. The power converter 3 includes a converter 31, a smoothing capacitor 32, and an inverter 33, and receives the power from an AC power supply 1 via an AC reactor 2 and converts it into a power of an optional frequency and voltage to supply to a motor 4. The apparatus further includes a subtracter which subtracts the subtraction amount from the first correction value to calculate a second correction value, and a controller which controls drive of the shake correcting part based on the second correction value.