adding images to JS objects