Fixed some bugs in quad bmp export
Worked on quad tree