fixed image rendering in the py notebook