Photometric processing for galaxy decomposition (particularly aimed at subtracting host galaxies around AGN)