Improved embedded images support in tileset

trim, base64 decode