some improvements, every bitmap n x n is working
working version with every bitmap.