Fixes image loading
Merge pull request #1665 from yurydelendik/bug1063301

Fixes image loading