I made a custom doctype which has image field which is mandatory
when an image is added then after_insert,validate events are getting triggered
why?
Because adding the image automatically saves the form and updates the file manager. This automatic save action causes the events to be called.