Fixes on image loading.