bitmap to csv conversion with rows