Fix issue with sprite when a style class has the same name than an ImageResource