fixed bug where images did not display