organization, fixed mem leak found via valgrind
more reliable .bmp reading