adding debug for canvas size issue