playing with SVG and PNG
refactored but still slow
new scripts
merged changes from matt