I am able to show 2 images by opening 2 dialog boxes, but I want to show both of them in the same dialog box. The images will keep on changing
One easy way of doing this is as follows:
If this way is too static or not how you want to do it, then you'll need to update your question to be more specific.