A method of scanning an object by projecting a shaped X-ray beam from a hand-held imaging device , said device comprising a housing enclosing an X-ray tube that emits the shaped X-ray beam, at least one detector for generating scan data corresponding to a plurality of detected X-rays scattered from the object, a processor in communication with a gyroscope and an accelerometer , and an acquisition system in communication with a speaker , a display , said processor and said at least one detector, the method comprising: receiving, by the processor, first data generated by the gyroscope, said first data being indicative of a direction of the shaped X-ray beam being projected on the object; receiving, by the processor, second data generated by the accelerometer, said second data being indicative of a movement of the shaped X-ray beam being projected on the object; using the processor for calculating a plurality of active pixels corresponding to a location of interaction of the shaped X-ray beam on the object using the first and second data; using the processor for calculating a time duration, at each of said plurality of active pixels, for which the shaped X-ray beam is present over each of said plurality of active pixels; and using the processor to generate an image, on said display, of the object after correcting the scan data, at each of said plurality of active pixels, using said time duration; wherein the hand-held imaging device is swept to scan the object using a coarse scanning pattern to identify at least one anomaly, with reference to the object, prior to calculating said plurality of active pixels, calculating said time duration and generating said image; wherein said at least one anomaly is identified based on a change in audible tone generated by the speaker; and wherein upon identification of said at least one anomaly, the handheld imaging device is swept to scan the object using a fine scanning pattern for calculating said plurality of active pixels, calculating said time duration and generating said image. receiving, by the processor, first data generated by the gyroscope, said first data being indicative of a direction of the shaped X-ray beam being projected on the object; receiving, by the processor, second data generated by the accelerometer, said second data being indicative of a movement of the shaped X-ray beam being projected on the object; using the processor for calculating a plurality of active pixels corresponding to a location of interaction of the shaped X-ray beam on the object using the first and second data; using the processor for calculating a time duration, at each of said plurality of active pixels, for which the shaped X-ray beam is present over each of said plurality of active pixels; and using the processor to generate an image, on said display, of the object after correcting the scan data, at each of said plurality of active pixels, using said time duration; wherein the hand-held imaging device is swept to scan the object using a coarse scanning pattern to identify at least one anomaly, with reference to the object, prior to calculating said plurality of active pixels, calculating said time duration and generating said image; wherein said at least one anomaly is identified based on a change in audible tone generated by the speaker; and wherein upon identification of said at least one anomaly, the handheld imaging device is swept to scan the object using a fine scanning pattern for calculating said plurality of active pixels, calculating said time duration and generating said image. <EOS>