Img Optim: Added CSS SmartTag + refactorings