Using multithreaded code for pixel conversion