fixing image not loaded error