now works with projected canvas too