updated code and er model to show new schema for image files.