Replace rmagick with mini_magick and got login to work