fixed small bugs and "generate statistics" not working bug

fixed images not displaying correctly in data explorer. 
fixed generate statistics bug
changed of some domain structure
commented out tQI.linkType that has not yet been implemented.
fixed some null pointer errors