bind the images with the dialog modal
Add some backspaces to make the code more readable.