Image Replica Detection Using R-Trees and Linear Discriminant Analysis