1. A portable handheld device comprising: an image sensor for capturing an image; an image sensor interface for receiving data from the image sensor; a DRAM for storing the data received by the image sensor interface; an image processor for storing the image the DRAM, the image processor including a plurality of micro-coded processing units; a central processor for instructing the image processor; and an orientation sensor for sensing a rotation of the protable handheld device at a time of sensing the image, wherein the central processor is configured to load the plurality of micro-coded processing units of the image processor with micro-code for performing an affine transform of the data in the DRAM to rotate the data in the DRAM by a rotation corresponding to the rotation sensed by the orientation sensor.