Remove unnecessary for loops (bitmap)