added some comments to the image loading