Replace obsolete dom node.
Made buddyPictureCapture a custom form field to make it work with dirty detection.