compression in canvas layers