Fix synchronization bug
The input argument about whether to synchronize the image to the training sequence or not, was not taken into account by the code. This PR fixes that.
The input argument about whether to synchronize the image to the training sequence or not, was not taken into account by the code. This PR fixes that.