added base64 encoding of images
added tests for parsing images