I'm kind of confused as to what it does. From the HN title I was expecting a way of mapping generic pictures to primes but it seems it generates the picture using the digits of the number.
It makes a picture from the digits of a prime number... the sneaky trick is that it just makes a picture using a "image to text digits" algorithm, and then just adjusts that number until it is prime.