Simple multithreaded implementation of processBMP