Rails middleware for image resizer. Integrated with CarrierWave