1. A method comprising: obtaining a captured image of a document physically placed on a background, the background having specifically designed patterns, the captured image being obtained with an imaging arrangement that comprises an imaging sensor having an array of photosensitive elements, a lens system operative to focus light reflected from the document onto the array of photosensitive elements in the imaging sensor, and wherein the specifically designed patterns of the background are distinguishable from any pattern found on the document; storing into a memory the captured image obtained by the imaging sensor, the captured image including an image of the document and an image of the background surrounding the document; and analyzing the captured image to search for a boundary of the document in the captured image, wherein said analyzing includes distinguishing the image of the background from the image of the document.