There are problems in the code; this fixes a zero division on my GR dng's but doesn't fix color issues.
Fixed a zooming bug; formatted the edit.qml file.