How to get the right exposure histogram