resized canvas and hitbox