Only with substitutions you can make some useful things
like adding a link, but with substitutions you are
forced to produce an inline image. Here is a partial
solution. If an image has an ``:align:`` attribute
that makes no sense because it specifies horizontal
alignment for inline images or vice-versa, I think it's
more useful to flip the inline-ness of the image
instead of ignoring it. The patch implements it.