Ruby dynamic image conversion proxy with caching