added ProcessImage event and used it in the example