add proper support for width of captions