add backwards compatibility with ruby 1.8.7
preserve background transparency on shape=cut operation
Merge pull request #15 from gordonc/master

some fixes for backwards compatibility and transparencies