Fix heroku image load issue for rails 4