1. A method of processing an image, the method comprising: receiving, at a decoder, selection of a region of interest (ROI) of an image to define a region of interest image; building a Huffman index tree based on the ROI image; rotating the ROI image at the decoder, wherein rotating the ROI image includes i) accessing a source minimum coding unit (MCU) index for each destination MCU of the image according to a rotation pattern, ii) modifying, according to the rotation pattern, image data in a MCU defined by the MCU index, wherein said accessing and modifying for a particular destination MCU includes: referencing the MCU index to determine a particular source MCU that is associated with the particular destination MCU, accessing the Huffman index tree to obtain information associated with the particular source MCU, and modifying image data in the particular destination MCU based on the accessed Huffman index tree information; and iii) writing the modified image data to an image data stream; and displaying the rotated ROI image.