fixed bugs
Was not redirecting after deletion of image