Add redirect for v1 image urls.
Fix Rack middleware order.