changed graph to bitmap