force img before setting