fix up css class names
Put the JSON for images internally