Added Parallelization of loop to get faster bitmap generation