Surface Photometry of Extended Sources by an Interactive Procedure