added function to remove background ring, is used to try to find relative offsets between images