fixing image rendering