Added a custom event to image upload form