everything works except sensing that the image has been successfully processed