fix snapshot crash and export missing images