implementing global setting for retina images

removed testing code for comma-separated classes, leaving it for now as
it requires further code investigation
moved sprite mapping inside @directive