add rmagic to gemfile