More work on dialog

- Moved some variable names around
- Now can remove images
- Now adds images to table