Handle image w/o pixels (see #11548)
Move check up.
Merge pull request #1656 from jburel/thumbnail-no-binary

Image no binary