attempting hack to avoid crash when images have not been drawn