Fixes diff calculation for transparency
Merge pull request #19 from JoostvDoorn/master

Fixes diff calculation for transparency