fixing image type issue
Merge pull request #1100 from a-chumagin/master

fixing image type issue