Fix corrupted images #4649
Merge pull request #4653 from fkaelberer/issue4649

Fix corrupted images #4649