1. A method of capturing an image in a device, the method comprising: displaying a preview of an image to be captured on a screen of the device; allowing a user to execute a capturing command with an action input through a spatial relationship with a region, wherein the region is any area on the surface of the screen; sensing the capturing command; comparing the capturing command to a template stored in a memory of the device, wherein the template is associated with image capturing, and consisting of a touch, a swipe, a gesture, a function of time, pressure, temperature, finger prints, or any combination thereof; and capturing the image if the capturing command substantially matches the template, wherein, after the comparison result is that the capturing command substantially matches the template, and before the image is captured, an automatic focusing using a focus area associated with the region is optionally comprised, and wherein the template is predefined by the user via the followed steps: repeating user inputs a number of times to record an average touch time, touch pressure, or length of wiping; and storing the average touch time, touch pressure, or length of swiping in the memory of the device as the template.