Missed condition to save display_data

Some additional conditional code to save images embedded in notebooks
using nbformat v4.