Removed a memory leak for TRUE images