Drawing the foo and adapting canvas size to screen resolution