how does the hubble telescope work