handle image size metadata in nbconvert html

I fixed this in October, but apparently never sent the PR.

closes #4685