changed defaults fn to merge to fix empty thumbnails object