sendimage callback invoking
callback wrapped in lambda