generating images with icons in same dir; using classes for text