created thumbnails directives + ie7 support