Fixed bug. Image was not destroyed.