1. A computer-implemented method for adding a stroke around image content in an image container of an electronic document, the image container characterized by a height dimension and a width dimension, and having visible image content defined by visible content edges, the method comprising shrinking the visible image content contained within the image container while maintaining an original size of the image container; determining a stroke width based only on a smaller dimension of the height dimension and the width dimension of the image container; and adding a stroke characterized by the stroke width around the edges of the visible image content to produce a variant image comprising the shrunken visible image content and added stroke.