Spatial distribution of XUV emission and density in a loop prominence