Returned previous code. The graphs are merged to one image.