Shrink the text if it goes beyond the edge of the image, see #60, see #45