Here's an idea:
Once you click on the image you selected, you get the src/imageUrl and then set it to your div as background image. Alternatively you can put an image tag within your div and assign the imageUrl of the image you selected. You can easily do this in JavaScript or jQuery.