fixed bug where first image was not showing up until refreshed.