1. A method for encoding comprising: tiling a binary image portion of a document; compressing the tiles of the binary image as masks or images for separate objects; and combining a JPEG 2000 codestream if necessary with the images or masks for separate objects in a JPM file to enable region of interest access to the document.