typeof null returns 'object', so protect against null values here
Merge pull request #37 from acechase/fix-deep-copy-for-null-values

fix for null values in the settings
Allow clients to add images dynamically