added a clause for the removeing null img_url