Updated code with successful main image

it loads sometimes, but causes errors….not related to the loading
images.