Captions can resizes automatically to a given maximum size while preserving the aspect ratio.