Glance image upload and download fixes