synchronisation of message exchange with worker

only send image data to worker once it has replied