Fix host canvas API bugs related to desired width/height