Bug fix: img.caption was displayed at full-width instead of its actual width

Bug fix: img.caption was displayed at full-width (100%) instead of its actual width (the image dimensions).