Efficient image representation for object recognition via pivots selection