Fixes #6: fixed issue with transparency trimming