public boolean remove(int location,ImageInfo object){
  final boolean removed=data.remove(object);
  notifyItemRangeRemoved(location,data.size());
  return removed;
}

public boolean remove ( int location , ImageInfo object ) { final boolean removed = data . remove ( object ) ; notifyItemRangeRemoved ( location , data . size ( ) ) ; return removed ; }
removes the first occurrence of the specified object from the data .
