Scale image coordinates beforehand to improve performance
Added rendering time reporting to the javascript console