Put ditherenable & alphaBlendEnable as function