1. A method for controlling an electronic device, comprising: holding an object in a specific orientation to present an aspect; capturing an image of the object; comparing the current captured image with images in a library of image-command associations to find a match; and when finding a match, triggering a command execution of the matching image-command association; wherein the comparing step further comprises establishing a new image-command association corresponding to the captured image when no match is found.