Rack Middleware: Automatically adds image dimensions to IMG tags