Generate width and height attributes for PNG images

Fix issue #3 by reading the image size from the generated image and populating the width and height attributes of the created block if necessary.

Travis configuration got mixed in to this pull request since I forgot to use a topic branch.