Symbol generation code was copied and adapted from kile.
Use batik toolkit (apache) for svg to png conversion