fixed bag icon sizes
implemented use of onload event to avoid showing non-loaded white backgrounds
change order of events on js background switch