updating tinting in canvas