Modified upload to allow user to select record id and image id