Fix remove image API endpoint