Fixed thumbnail issue by installing and using rmagick