Fixed image deletion