With this approach, the figures won't be treated as a floating object so their placement will be your responsability. If you want the object to be treated as a floating object, simply use minipages inside a figure environment and the standard \caption command; once again, the justification=centering option from the caption package will cause each line of the captions to be centered: