Fixes drawImage for thumbs
Merge pull request #4924 from yurydelendik/fixthumb

Fixes drawImage for thumbs