getting rid of bitmap writing stuff