add backwards compatibility with ruby 1.8.7
preserve background transparency on shape=cut operation