Add compatibility to rmagick