add onSaveImage event