added the fix so that images will be loaded once