Refactored environment configuration
Refactored remote image upload
Added gem for heroku