Fixed bug, which caused images to disappear after window minimizing.