Fixing error in the image being loaded