From http://www.homeandlearn.co.uk/JS/html5_canvas_drop_shadows.html