A new algorithm for the embedding of a prediction mechanism into the JPEG 2000 coding chain