An efficient signature representation for retrieval of spatially similar images