Invalid query update Img visited