What's like to happen? Given how low the probability of such an event is to happen by chance, if the algorithm is traced back to you then the court will find you guilty of creating the algorithm specifically to produce the image. In short, you would be extremely unlucky.
Why in this case maker of decoder should go to jail and not creator of google logo? To really make it difficult - let's assume both image and decoder was made at the same time.
If both were created at the same time, it would be a far different court case. I was assuming the case where the logo clearly predates the algorithm, because in that case you would get enough expert witnesses to testify that the logo was itself clean and thus it is extremely likely the algorithm was developed to specifically produce that image given the input.
If both were provably independently created at the same time, you would probably instead be having an uproar among scientists about the probability for such an event happening. It may still cause issues because the probability of such an event is so small, that the probability of the proof of their being independently created being wrong is the far more likely event.