Changed logic to upload glance images from one controller only