added option to set images to display on upload