modify img and add loading img