1. A method for restoring an image for an electronic device, comprising: generating an acceleration signal when an image of a photographed object is received; measuring the distance between the electronic device and the photographed object to generate an object distance; and restoring the image according to the acceleration signal and the object distance.