Update gem dependency

Compatible with any Rails version higher than 4.0.0 and lower than 4.2.0.
Update paperclip dependency to 3.5.4.