Major fixes in scaling algorithm
Added /chart function with simple chart and added image lazy loading