use `T` instead of `PIXTYPE`