Updated cube to canvas renderer