added pano canvas parameter to constructor