Changes added to include unique ID field for the image ID. Also inculded changes for the upsert statement while doing the updates to the back-end