Fit caption to the width of any image