added processing of incoming images