Initial treatment of image envelopes (not working yet)