hack fix for pageToImage if no image loaded yet