I am wondering if it is possible to align an image to the right margin of the page (with
\raggedleft) while still having it's caption nicely centered (with
\centering) under the image (centered with respect to the image itself I mean, not w.r.t the page).
Is this possible in latex?
Ideally the solution should work within both a