fixed the bug where images wouldn't display