Fixed bugs in plot_image_3d.py