fix empty img url issue