change css class for image dimension

- add dimension prefix
- for textimage add in outer div for best flexibility
- fix unit tests
Merge pull request #241 from nsams/3.7-image-dimension-class

change css class for image dimension