image deletion now works