auto select first img, and bug resolve on tags