I got a question: Is the goal only to add the charToNum values for Red,Green and blue for each pixel? I´m not sure If I understand the original script correctly. If so there is a very speedy alternative. If not could you please explain in a few words of pseudo code what the script needs to do? Thanks, Malte