fix imageResOnLoading. wrong variable :)