fix for snapshot module if canvas exceeds thumbnailsize
(cherry picked from commit 8fc31dc52f93706635dab5485fdb0c088e2b08a2)