fixing image loading.