set the background as a dynamically resizing html5 canvas