fixed brightness/contrast calc
renamed -> rps