1. A method for processing image data, comprising: providing input image data; segmenting the input image data to generate: a background layer representing the background attributes of an image; a selector layer for identifying one or more foreground attributes of the image not included in the background layer; and a foreground layer representing the foreground attributes of the image; generating a black text layer comprising pixel data representing black text in the input image data; assigning the black text pixel data a predetermined value for the color black; and integrating the background layer, the selector layer, the foreground layer, and the black text layer into a data structure having machine-readable instructions that may be stored in a memory device.