remove redundant leaf.js stuff, add image dimensions, small speed improvements