Converts raw frame buffer image to pbm.