Generalize intensity scaling

Normalize all frame values to range [0,1] for all platforms. Solves
[0,255] scaling issue with Linux and Windows.