fixed defining img twice