implemented bmp export