fix 1059 Converting large image to pdf causes app to crash #1060
deepoceansame wants to merge
deepoceansame:1059-fix-crash-bug
into Swati4star:master
deepoceansame:1059-fix-crash-bug
into Swati4star:master