Relaxed the handling of Image objects
Implement add, set and get methods for StateSet.