fixed small error preventing images from being loaded