fix bug in meta img extraction