Canonical models for triangular modular curves