improve whitespace handling in image processing

prevent images parser from interpreting ! noimage ! as image tag

(?:(?<=[^\!])\s+)?

optionally match one or more spaces that must not be preceeded by an
exclamation mark. if any of the optional alignment or css options are
used a space is acceptable otherwise not.