Fixed some error preventing images from loading