changed bytes per pixel to bits per pixel in frame format