No more global
img added to template
file upload
new map functions
trimmed whitespaces