image reconstruction functions