removed unused SendImage function
log if can't encode event