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 characterized by predefined content edges, the method comprising shrinking, automatically by one or more processors, the visible image content contained within the image container such that no portion of the visible image content abuts a boundary of the image container, while maintaining an original size of the image container; selecting, automatically by one or more processors, the predefined content edges; determining, automatically by one or more processors, a stroke width based only on a smaller dimension of the height dimension and the width dimension of the image container; and adding, automatically by one or more processors, a stroke characterized by the stroke width around the predefined content edges to produce a variant image comprising the shrunken visible image content and added stroke.