Added event handler for detecting value change of image element.