fixed problem with canvas size not matching frame size