image component caption enhancement

add option to center align the caption in addition to left/right alignment