pixel brightness transformations