Add a link to the original image for the galleria theme.
Use lstrip_blocks jinja option.

From jinja doc:

    If this is set to True leading spaces and tabs are stripped from the start
    of a line to a block