Improved parser

- parser can now also parse images from closed tags where the image is
just an attribute