A method for electrode placement includes acquiring an image of a body of a patient, such that the image captures a patch that has been placed on the body. Based on the acquired image and the patch appearing therein, one or more preferred locations are calculated on the body for placing one or more respective electrodes to be used in carrying out a procedure in an internal organ of the patient. The preferred locations are displayed to an operator.