make sure img has a src