changed to require rmagick