initializes canvas