1. A method performed by a computer system of positioning an image in an electronic document, the method comprising: receiving an electronic document; receiving a first image to be positioned in the electronic document, the first image encoding information; receiving information identifying a plurality of colors; determining a first area within the electronic document for positioning the first image; and determining, based upon the first area, a set of one or more colors from the plurality of colors for the first image.