Added javascript to add images