r2: fixed image loading issue