Improve image css-generation: reuse css classes for sprites with the same img and dimensions