The method of images and Green's function for spherical domains