Fixed max_size bug in image_dynamics net and removed an unnecessary Ipython embed