fix img rendering