image caption fixes

if component centered then center the image if width if less than 100%