That's what I thought at first, but that way surely would take many time for each image(well..actually the pictures are just 20x20) but they are A LOT and I'll have to be continuosly doing the process. I thought maybe there would be something along the matrixcolor classes or something that would be faster.

But if there's not, then thanks by the code