fix picture destruction