Changed license to the simplified BSD license
cosmetic gamma related changes

Fixes #79
Use gAMA chunk only if sRGB is absent

Fixes #78