Somewhat cleaned up class icons code. Fixed positions for resources that have less than 5 charges.