Why would you release the image: you don't own it. Read my post above. Did you create the image with alloc/init or copy? No. So don't release it. It's autoreleased.
I think you need to read and fully understand the Cocoa Memory Management Guide as this is an absolutely fundamental concept. Really you should not be writing code at all until you are sure you know this.
I think you need to read and fully understand the Cocoa Memory Management Guide as this is an absolutely fundamental concept. Really you should not be writing code at all until you are sure you know this.