Fixed image "memory leak"